package com.nowcoder.community.config;

import org.springframework.context.annotation.Configuration;

@Configuration
public class ElasticsearchConfig {

//    @Value("${spring.data.elasticsearch.uris}")
//    private String esUrl;
//
//    @Bean
//    RestHighLevelClient client() {
//        //elasticsearch地址
//        ClientConfiguration clientConfiguration = ClientConfiguration.builder()
//                .connectedTo(esUrl)
//                .build();
//
//        return RestClients.create(clientConfiguration).rest();
//    }




}
